package cn.tedu.personal_patient.information.dao.persist.repository.impl;

import cn.tedu.personal_patient.information.dao.persist.mapper.PatientAddressMapper;
import cn.tedu.personal_patient.information.dao.persist.mapper.PatientMapper;
import cn.tedu.personal_patient.information.dao.persist.repository.IPatientAddressRepository;
import cn.tedu.personal_patient.information.dao.persist.repository.IPatientRepository;
import cn.tedu.personal_patient.information.pojo.entity.Patient;
import cn.tedu.personal_patient.information.pojo.entity.PatientAddress;
import cn.tedu.personal_patient.information.pojo.vo.PatientListVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Slf4j
@Repository
public class PatientAddressRepositoryImpl implements IPatientAddressRepository {


    @Autowired
    private PatientAddressMapper patientAddressMapper;

    @Override
    public int deleteByPatientId(Long patientId) {
        return patientAddressMapper.deleteByPatientId(patientId);
    }

    @Override
    public int insert(PatientAddress patientAddress) {
        return patientAddressMapper.insert(patientAddress);
    }
}
